﻿<script src="../js/vue.min.js"></script>

<div id="demo1">
    <demo :text="a"></demo>
</div>

<script>
    Vue.component('demo', {
        props: ['text'],
        template: "<h1>{{text}}</h1>",
        methods: {
        }
    });

    new Vue({
        el: "#demo1",
        data: {
            a: 1
        }
    });
</script>